import request from "@/utils/request";

const BASE_API = '/monitor/online'

export default {
  // 获取在线好友列表
  getOnlineUserList(pageNo, pageSize,params) {
    return request({
      url: `${BASE_API}/user/list/${pageNo}/${pageSize}`,
      method: 'get',
      params
    })
  },

  // 强退用户
  forceLogout(tokenId) {
    return request({
      url: `${BASE_API}/user/forceLogout`,
      method: 'post',
      params: {tokenId}
    })
  }
}
